import VueRouter from 'vue-router';
import Vue from 'vue'

Vue.use(VueRouter)

const routerList = [
    {
      path: '/screen1',
      name: 'screen1',
      component: () => import( '@/views/Screen1.vue'),
    },
    {
      path: '/screen2',
      name: 'screen2',
      component: () => import( '@/views/Screen2.vue'),
    },
    {
      path: '',
      redirect: '/screen1',
    }
  ]

const createRouter = () =>
  new VueRouter({
    routes: routerList,
    scrollBehavior() {
      return { x: 0, y: 0 };
    },
  });

const router = createRouter();

export default router;

